import {
    HTTP
} from "../utils/http.js"
class AccountModel extends HTTP {
    //  获取验证码
    mobileVerfiCode(phone) {
        return this.request({
            url: 'program/antProgramApiService/mobileVerfiCode',
            data: {
                phone
            },
            method: 'POST'
        })
    }
    //  修改手机号
    updateMemberPhone(mobilePhone,newMobilePhone,validCode) {
        return this.request({
            url: 'program/antProgramApiService/updateMemberPhone',
            data: {
                mobilePhone,
                newMobilePhone,
                validCode
            },
            method: 'POST'
        })
    }
    //  忘记密码
    forgetPayPwd(newPassWord,validCode) {
        return this.request({
            url: 'program/antProgramApiService/forgetPayPwd',
            data: {
                newPassWord,
                validCode
            },
            method: 'POST'
        })
    }
    //  设置支付初始密码接口
    setPayPwd(password) {
        return this.request({
            url: 'program/antProgramApiService/setPayPwd',
            data: {
                password
            },
            method: 'POST'
        })
    }
    //  修改支付密码接口
    updatePayPwd(oldPassword,newPassword) {
        return this.request({
            url: 'program/antProgramApiService/updatePayPwd',
            data: {
                oldPassword,
                newPassword
            },
            method: 'POST'
        })
    }
    //  修改支付密码接口
    checkOriginPwd() {
        return this.request({
            url: 'program/antProgramApiService/checkOriginPwd',
            data: {
            },
            method: 'POST'
        })
    }

}
export {
    AccountModel
}